|
2020-2021 Sunseeker Telemetry and Lighting System
|
#include "driverlib.h"Go to the source code of this file.
Functions | |
| void | main (void) |
Variables | |
| uint32_t | Result |
| uint16_t | Result_Q15 |
| void main | ( | void | ) |
Definition at line 66 of file mpy32_ex15_fractionMode.c.
References __no_operation(), Result, and Result_Q15.
| uint32_t Result |
MPY - Fractional mode, Q15 multiplication
The example illustrates multiplication of 2 Q15 numbers in fractional mode. The result is a Q15 (15 bit) number stored in the RES1 register. It can be viewed in the debugger window.
ACLK = 32.768kHz, MCLK = SMCLK = default DCO
| / | | |
|---|---|
| – | RST |
| | | |
This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:
This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.
Definition at line 63 of file mpy32_ex15_fractionMode.c.
| uint16_t Result_Q15 |
Definition at line 64 of file mpy32_ex15_fractionMode.c.